<?php
//foreach遍历数组
$a=[111,222,'name'=>'张三','age'=>18,1000=>333,444];
foreach($a as $key=>$value){ //处理key及value值
    echo $key,'  ------>  ',$value,"\n";
}
echo "\n";
foreach($a as $value){ //仅处理value值
    echo $value,"\n";
}